﻿using KingsSharp.Core.Data.Entity;
using CRM.Admin.Contracts.Model.Logs;
using System;

namespace CRM.Admin.Services.EntityConfigurations.Logs
{
    public class LoginLogConfiguration : EntityConfigurationBase<LoginLog, Guid>
    {
        public LoginLogConfiguration()
        {
            this.Property(a => a.Action).HasMaxLength(20);
            this.Property(a => a.Browser).HasMaxLength(50);
            this.Property(a => a.Ip).HasMaxLength(18);
            this.Property(a => a.LoginCode).HasMaxLength(30);
            this.Property(a => a.Name).HasMaxLength(20);
            this.Property(a => a.SystemName).HasMaxLength(50);
        }
    }
}
